Part Number Hot Search : 
SMF102A LC75817W DG428 BU32TA2W T7YB470K EPC3018G Z5240 NTE1673
Product Description
Full Text Search
 

To Download LH540225 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  lh540215/25 512 18 / 1024 18 synchronous fifo features fast cycle times: 20/25/35 ns pin-compatible drop-in replacements for idt72215b/25b fifos choice of idt-compatible or enhanced operating mode; selected by an input control signal device comes up into one of two known default states at reset depending on the state of the emode control input: programming is allowed, but is not required internal memory array architecture based on cmos dual-port sram technology, 512 18 or 1024 18 synchronous enable-plus-clock control at both input port and output port independently-synchronized operation of input port and output port control inputs sampled on r ising clock edge most control signals assertive-low for noise immunity may be cascaded for increased depth, or paralleled for increased width five status flags: full, almost-full, half-full, almost-empty, and empty; almost flags are programmable in enhanced operating mode, almost- full, half-full, and almost-empty flags can be made completely synchronous in enhanced operating mode, duplicate enables for interlocked paralleled fifo operation, for 36-bit data wi dth, when selected and appr opriately connected in enhanced operating mode, disabling three-state outputs may be made to suppress reading data retransmit function ttl/cmos-compatible i/o space-saving 68-pin plcc pac kage, and 64-pin tqfp package reset logic input port rs input port control logic read pointer write pointer dedicated and programmable status flags fifo memory array 512 x 18/1024 x 18 output port control logic ff paf wxo/hf rxo /ef 2 pae d 0 - d 17 wen wck q 0 - q 17 rck output port ren oe programmable registers expansion logic wxi/ wen 2 fl/ rt wxo/hf rxi/ ren 2 rxo/ ef 2 ld 540215-1 wxi/ wen 2 rxi/ ren 2 bold italic = enhanced operating mode. emode ef figure 1. lh540215/25 block diagram bold ita lic = enh anced op erating mode 1
functional description note: throughout this data sheet, a bold italic type font is used for all references to enhanced operating mode features which do not function in idt-compatible operating mode; and also for all references to the re- transmit facility (which is not an idt72215b/25b fifo feature), even though it may be used C subject to some restrictions C in either of t hese two operating modes. thus, readers interested only in using the lh540215/25 fifos in idt-compatible operating mode may skip over bold italic sections, if they wish. the lh540215/25 parts are fifo (first-in, first-out) memory devices, based on fully-static cmos dual-port sram technology, capable of containing up to 512 or 1024 18-bit words respectively. they can replace two or more byte-wide fifos in many applications, for microprocessor- to-microprocessor or microprocessor-to-bus communica- tion. their architecture supports synchronous operation, tied to two independent free-running clocks at the input and output ports respectively. however, these clocks also may be aperiodic, asynchronous demand signals. almost all control-input signals and status-output signals are synchro- nized to these clocks, to simplify system design. the input and output ports operate altogether inde- pendently of each other, unless the fifo becomes either totally full or else totally empty. data flow is initiated at a port by the rising edge of its corresponding clock, and is gated by the appropriate edge-sampled enable signals. the following fifo status flags monitor the extent to which the internal memory has been filled: full, almost- full, half-full, almost-empty, and empty. the almost- full and almost-empty flag offsets are programmable over the entire fifo depth; but, during a reset operation, each of these is initia lized to a default off set value of 63 10 (lh540215) or 127 10 (LH540225) fifo-memory words, from the respective fifo boundary. if this default offset value is satisfactory, no further programming is required. after a reset operation during which the emode control input was not asserted (was high), these fifos operate in the idt-compatible operating mode. in this mode, each part is pin-compatible and functionally-compatible with the idt72215b/25b part of similar depth and speed grade; and the control register is not even accessible or visible to the external-system logic which is controlling the fifo, although it still performs the same control functions. however, assertion of the emode control input during a reset operation l eaves control register bits 00-05 set, and causes the fifo to operate in the enhanced operating mode. in esse nce, asserting emode chooses a different default state for the con- trol register. the system optionally then may pro- gram the control register in any desired manner to activate or deactivate any or all of the enhanced-op- erating-mode features which it can control, inc luding selectable-clock-edge flag synchronizati on, and read inhibition when the data outputs are disabled. whenever emode is being asserted, interlocked- operation paralleling also is available, by appropriate interconnection of the fifos expansion inputs. the retransmit f acility is available during standalone operation, in either idt-compatible operating mode or enhanced operating mode. (see tables 1 and 2.) it is inoperative if the fl/ rt input signal is grounded. it is not an idt72215b/25b feat ure. the retransmit control signal causes the internal fifo read-address pointer to be set back to zero, without affecting the internal fifo write-address pointer. thus, the retransmit control signal also provides a mechanism whereby a block of data delimited by the zero physical address and the current write -address-pointer address may be read out repeatedly, an arbitrary number of times. the only restrictions are that neither the read-ad- dress pointer nor the write-address pointer may wrap around during this entire process, and that the retransmit facility is not available during depth-cas- caded operation, either in idt-compatible operating mode or in enhanced operating mode. (see tables 1 and 2.) also, the flags behave differently for a short time after a retransmit operation. otherwise, the re- transmit facility is available during standalone opera- tion, in either idt-compatible operating mode or enhanced operating mode. note that, when fl/rt is being used as rt, rt is an assertive-high signal, rather than assertive-low as it is in most other fifos having a retransmit facility. programming the programmable-flag offsets, the tim- ing synchronization of the various status flags, the optional read-suppression functionality of oe , and the behavior of the pointers which access the offset- value registers and the control register may be indi- vidually contr olled by asserting the signal ld, without any reset operation. when ld is being asserted, and writing is being enabled by asserting wen, some portion of the input bus word d 0 C d 17 is used at the next rising edge of wclk to program one or more of the programm able registers on successive write clocks. likewise, the values programmed into these programmable registers may be read out for verification by asserting ld and ren, with the outputs q 0 C q 17 enabled. reading out these pro- grammable registers should not be initiated while they are being written into. table 3 defines the possible modes of operation for loading and reading out the contents of programmable registers. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 2
in the enhan ced operating mode, coordinated op- eration of two 18-bit fifos as one 36-bit fifo may be ensured by interlocked crosscoupling of the sta tus- flag outputs from each fifo to the expansion inputs of the other one; that is, ff to wxi/wen 2 , and ef to rxi/ren 2 , in both directions between two paralleled fifos. this interlocked o peration takes effect automatically, if two paralleled fifos are crosscon- nected in this manner, with the emode control input being asserted (low). (see tables 1 and 2, also figures 27 and 30.) idt-compatible depth cascading no longer is available when operating in this i nter- locked-paralleled mode; however, pipelined depth cascading remains available. top view 540215-2 3 2 1 6867666564636261 9876 54 q 17 q 16 q 15 ld oe v cc ef v cc d 15 d 16 d 17 rclk ren rs 16 17 18 19 20 23 24 21 22 26 15 11 12 13 14 10 25 d 2 d 0 d 13 d 14 d 11 d 12 d 9 d 10 d 8 v cc d 7 d 5 d 6 d 3 d 4 d 1 55 54 53 52 51 48 47 50 49 46 44 60 59 58 57 56 45 q 11 v cc q 10 q 9 q 8 q 7 emode * q 6 q 5 q 4 v cc q 14 q 13 q 12 33 34 35 36 37 38 39 40 41 42 43 27 28 29 30 31 32 q 2 q 3 wxo/hf q 0 q 1 v cc v cc fl/ rt wclk rxo/ ef 2 ff rxi/ ren 2 paf wxi/ wen 2 wen pae v ss v ss v ss v ss v ss v ss v ss v ss bold italic = enhanced operating mode. * this pin is v cc on idt pinout; if emode pin is simply biased to v cc , part will behave identical to idt functionality. 68-pin plcc figure 2. pin connections for 68-pin plcc package bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 3
top view 540215-34 58 57 56 55 54 53 52 51 50 49 64 63 62 61 60 59 q 17 q 16 ld oe v cc ef v cc d 16 d 17 ren rs 7 8 9 10 11 14 15 12 13 6 2 3 4 5 1 16 d 2 d 0 d 13 d 15 d 11 d 12 d 9 d 10 d 8 d 7 d 5 d 6 d 3 d 4 d 1 rclk d 14 43 42 41 40 39 36 35 38 37 44 48 47 46 45 34 q 14 q 11 q 12 q 10 q 9 q 7 q 8 q 5 q 6 q 4 q 13 33 q 15 23 24 25 26 27 28 29 30 31 32 17 18 19 20 21 22 q 0 q 1 paf ff pae fl/ rt wclk wxi/ wen 2 wxo/hf wen q 2 v cc q 3 64-pin tqfp v cc v ss v ss v ss v ss v ss emode * v ss rxo/ ef 2 rxi/ ren 2 v ss bold italic = enhanced operating mode. * this pin is v cc on idt pinout; if emode pin is simply biased to v cc , part will behave identical to idt functionality. figure 3. pin connections for 64-pin tqfp package summary of signals/pins pin name d 0 C d 17 data inputs rs reset emode enhanced operating mode wclk write clock wen write enable rclk read clock ren read enable oe output enable ld load fl /rt first load/ retransmit rxi /ren 2 read expansion input/ read enable 2 pin name wxi /wen 2 write expansion input/ write enable 2 ff full flag paf programmable almost-full flag wxo/ hf write expansion output/half-full flag pae programmable almost-empty flag ef empty flag rxo/ ef 2 read expansion output /empty flag 2 q 0 C q 17 data outputs v cc power v ss ground bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 4
pin list signal name plcc pin no. tqfp pin no. rs 1 57 oe 2 58 ld 3 59 ren 4 60 rclk 5 61 d 17 763 d 16 864 d 15 91 d 14 10 2 d 13 11 3 d 12 12 4 d 11 13 5 d 10 14 6 d 9 15 7 d 8 17 8 d 7 19 9 d 6 20 10 d 5 21 11 d 4 22 12 d 3 23 13 d 2 24 14 d 1 25 15 d 0 26 16 pae 27 17 ft/ rt 28 18 wclk 29 19 wen 30 20 wxi/ wen 2 31 21 paf 33 23 rxi/ ren 2 34 24 ff 35 25 wxo/ hf 36 26 rxo/ ef 2 37 27 q 0 38 28 signal name plcc pin no. tqfp pin no. q 1 39 29 q 2 41 31 q 3 42 32 q 4 44 34 q 5 46 36 q 6 47 37 emode 48 33 q 7 49 38 q 8 50 39 q 9 52 41 q 10 53 42 q 11 55 44 q 12 56 45 q 13 58 47 q 14 59 48 q 15 61 50 q 16 63 52 q 17 64 53 ef 66 54 v ss 662 v cc 16 nc v ss 18 nc v cc 32 22 v ss 40 30 v cc 43 nc v ss 45 35 v ss 51 40 v cc 54 43 v ss 57 46 v cc 60 49 v ss 62 51 v cc 65 nc v ss 67 55 v cc 68 56 bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 5
pin descriptions pin name pin type 1 description d 0 C d 17 data inputs i data inputs from an 18-bit bus. rs reset i when rs is taken low, the fifos internal read and write pointers are set to address the first physical location of the ram array; ff, paf, and hf go high; and pae and ef go low. the programmable-flag-offset registers and the control register are set to their default values. (but see the description of emode , below.) a reset operation is required before an initial read or write operation after power-up. emode enhanced operating mode i when emode is tied low, the default setting for control register bits 00-05 after a reset operation changes to high rather than low, thus enabling all control-register-controllable enhanced operating mode features, and allowing access to the control register for reprogramming or readback. (see tables 1, 2, and 5.) if this behavior is desired, emode may be grounded; however, control register bits 00-05 still may be individually programmed to selectively enable or disable certain of the enhanced mode features, even though those features associated with interlocked-paralleled operation always are enabled whenever emode is being asserted. (see table 2.) alternatively, emode may be tied to v cc, so that the fifo is functionally idt-compatible, and the control register is not accessible or visible, and all of its bits remain low. controlling emode dynamically during system operation is not recommended. wclk write clock i data is written into the fifo on a low-to-high transition of wclk, whenever wen (write enable) is being asserted (low), and ld is high. if ld is low, a programmable register rather than the internal fifo memory is written into. in the enhanced operating mode, wen 2 is anded with wen to produce an effective internal write-enable signal. 2 wen write enable i when wen is low and ld is high, an 18-bit data word is written into the fifo on every low-to-high transition of wclk. when wen is high, the fifo internal memory continues to hold the previous data. (see table 3.) data will not be written into the fifo if ff is low. in the enhanced operating mode, wen 2 is anded with wen to produce an effective internal write-enable signal. 2 rclk read clock i data is read from the fifo on a low-to-high transition of rclk whenever ren (read enable) is being asserted (low), and ld is high. if ld is low, a programmable register rather than the internal fifo memory is read from. in the enhanced operating mode, ren 2 is anded with ren (and whenever control register bit 05 is high, also with oe) to produce an effective internal read-enable signal. 2 ren read enable i when ren is low and ld is high, an 18-bit data word is read from the fifo on every low-to-high transition of rclk. when ren is high, and/or also when ef is low, the fifos output register continues to hold the previous data word, whether or not q 0 C q 17 (the data outputs) are enabled. (see table 3.) in the enhanced operating mode, ren 2 is anded with ren (and whenever control register bit 05 is high, also with oe) to produce an effective internal read-enable signal. 2 oe output enable i when oe is low, the fifos data outputs drive the bus to which they are connected. if oe is high, the fifos outputs are in high-z (high-impedance) state. in the enhanced operating mode, oe not only continues to control the outputs in this same manner, but also can function as an additional anding input to the combined effective read-enable signal, along with ren and ren 2 , whenever control register bit 05 is high. (see table 5.) 2 1 i = input, o = output, z = hi gh-impedance, v = power vo ltage level 2 the ostensible differences in si gnal assertiveness are reconciled before anding. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 6
pin descriptions (contd) pin name pin type 1 description ld load i when ld is low, the data word on d 0 C d 17 (the data inputs) is written into a programmable-flag-offset register, or into the control register (when in the enhanced operating mode), on the low-to-high transition of wclk, whenever wen is low. (see table 3.) also, when ld is low, a word is read to q 0 C q 17 (the data outputs) from the offset registers and/or the control register (when in the enhanced operating mode) on the low-to-high transition of rclk, whenever ren is low. (see again table 3, and particularly the notes following this table.) when ld is high, normal fifo write and read operations are enabled. fl /rt first load/ retransmit i in the standalone or paralleled configuration, fl/ rt should be low during a reset operation. (see tables 1 and 2.) however, thereafter, in the standalone or paralleled configuration, if fl is taken high, it functions instead as rt (retransmit), and resets the fifos internal read pointer to the first physical location of the ram array. note that although retransmit is an enhanced feature, it is always available for a fifo during standalone operation, whether the fifo is in idt-compatible operating mode or in enhanced operating mode; it is not regulated either by the control register or by the emode control input. in idt-compatible cascaded configuration, fl has an entirely different function; it is grounded for the first fifo device (the master device or first- load device), and is set to high for all other fifo devices in the daisy chain. thus, the retransmit feature is not available for fifos operating in an idt-compatible cascaded configuration. wxi /wen 2 write expansion input/ write enable 2 i this signal is dual-purpose; its functionality is determined during a reset operation, according to its own state, and also according to the states of the three other control inputs rxi /ren 2 , fl /rt , and emode . (see tables 1 and 2.) in the standalone or paralleled configuration, wxi/ wen 2 is grounded. in the cascaded configuration, wxi/ wen 2 is connected to wxo (write expansion output) of the previous device, and functions as wxi. in the enhanced operating mode, wxi/wen 2 functions as a second write-enable signal, wen 2 , which is anded with wen to produce an effective internal write-enable signal. 2 rxi /ren 2 read expansion input/ read enable 2 i this signal is dual-purpose; its functionality is determined during a reset operation, according to its own state, and also according to the states of the three other control inputs wxi /wen 2 , fl /rt , and emode . (see tables 1 and 2.) in the standalone or paralleled configuration, rxi/ ren 2 is grounded. in the cascaded configuration, rxi/ ren 2 is connected to rxo (read expansion output) of the previous device, and functions as rxi. in the enhanced operating mode, rxi/ren 2 functions as a second read-enable signal, ren 2 , which is anded with ren C and perhaps also with oe, if control-register bit 05 is high C to produce an effective internal read-enable signal. 2 ff full flag o when ff is low, the fifo is full; further advancement of its internal write-address pointer, and further data writes through its data inputs into its internal memory array, are inhibited. when ff is high, the fifo is not full. ff is synchronized to wclk. pa f programmable almost-full flag o when paf is low, the fifo is almost full, based on the almost-full-offset value programmed into the fifos almost-full offset register. the default value of this offset at reset is one-eighth of the total number of words in the fifo-memory array, minus one, measured from full. (see table 4.) in the idt-compatible operating mode, paf is asynchronous. in the enhanced operating mode, paf is synchronized to wclk after a reset operation, according to the state of control register bit 04. (see table 5.) notes: 1. i = input, o = output, z = hi gh-impedance, v = power voltage level 2. the ostensible differences in signal assertiveness are rec onciled before anding. bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 7
pin name pin type 1 description wxo/ hf write expansion output/ half-full flag o this signal is dual-purpose; its functionality is determined during a reset operation according to the states of the two control inputs wxi/ wen 2 and rxi/ ren 2 . (see tables 1 and 2.) in the standalone or paralleled configuration, whenever hf is low the device is more than half full. in idt-compatible operating mode, hf is asynchronous; in the enhanced operating mode, hf may be synchronized either to wclk or to rclk after a reset operation, according to the state of control register bits 02 and 03. (see table 5.) in the idt-compatible cascaded configuration, a pulse is sent from wxo to the wxi input of the next fifo in the daisy-chain cascade, whenever the last location in the fifo is written. pae programmable almost-empty flag o when pae is low, the fifo is almost emp ty, ba sed on the almost-empty-offset value programmed into the fifos almost-empty offset register. the default value of this offset at reset is one-eighth of the total number of words in the fifo-memory array, minus one, measured from empty. (see table 4.) in idt-compatible operating mode, pae is asynchronous. in the enhanced operating mode, pa e is synchronized to rclk after a reset operation, according to the state of control register bit 01. (see table 5.) ef empty flag o when ef is low, the fifo is empty; further advancement of its internal read- address pointer, and further readout of data words from its internal memory array to its data outputs, are inhibited. when ef is high, the fifo is not empty. ef is synchronized to rclk. rxo / ef 2 read expansion output o this signal is dual-purpose; its functionality is determined by the state of the emode control input during a reset operation. (see tables 1 and 2.) in the idt- compatible operating mode, in a cascaded configuration, a pulse is sent from rxo to the rxi input of the next fifo in the daisy-chain cascade, whenever the last location of the fifo is read. in the enhanced operating mode, whenever emode is being asserted (low), ef 2 behaves as an exact duplicate of ef, but delayed by one full cycle of rclk with respect to ef. q 0 C q 17 data outputs o/z data outputs to drive an 18-bit bus. v cc power v +5 v power-supply pins. v ss ground v 0 v ground pins. note: 1. i = input, o = output, z = hi gh-impedance, v = power vo ltage level pin descriptions (contd) bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 8
absolute maximum ratings parameter rating supply voltage to v ss potential C 0.5 v to 7 v signal pin voltage to v ss potential C 0.5 v to v cc + 0.5 v dc output current 1 75 ma temperature range with power applied 2 C55 c to 125 c storage temperature range C 65 c to 150 c power dissipation (plcc package limit) 2 w notes: 1. only one output may be shorted at a time, for a period not exceeding 30 seconds. 2. measured with clocks idle. operating range symbol parameter min. max. unit t a temperature, ambient 070c v cc supply voltage 4.5 5.5 v v ss supply voltage 0 0 v v il logic low input voltage C0 .5 0.8 v v ih logic high input voltage 2.0 v cc + 0.5 v dc electrical characteristics (o ver operating range) symbol parameter test conditions min. max. unit i li input leakage v cc = 5.5 v, v in = 0 v to v cc C10 10 m a i lo i/o leakage oe 3 v ih , 0 v v out v cc C10 10 m a v oh output high voltage i oh = C12.0 ma 2.4 v v ol output low voltage i ol = 16.0 ma 0.4 v i cc average operating supply current 1 measured at f cc = 50 mhz 190 ma i cc2 average standby supply current all inputs = v ih min. (clocks idle) 25 ma i cc3 power-down supply current all inputs = v cc C 0.2 v (clocks idle) 1 ma note: 1. output load is disconnected. ac test conditions parameter rating input pulse levels v ss to 3 v input rise and fall times (10% to 90%) 3 ns input timing reference levels 1.5 v output timing reference levels 1.5 v output load, timing tests (figure 4) r 1 (top resistor) 1.1k w r 2 (bottom resistor) 680 w c l (load capacitance) 30 pf capacitance 1, 2 parameter rating c in (input capacitance) v in = 0 v 8 pf c out (output capacitance) v out = 0 v 8 pf notes: 1. sample tested only. 2. capacitances are ma ximum values at 25c, measured at 1.0 mhz, with v in = 0 v. 540215-3 device under test +5 v 30 pf 1.1 k w 680 w includes jig and scope capacitances * * figure 4. output load circuit bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 9
ac electrical characteristics symbol parameter C20 C25 -35 mi n. max. mi n. max. min. max. f cc clock cycle frequency 50 40 28.6 t a data access time 2 12 3 15 3 20 t clk clock cycle time 20 25 35 t clkh clock high time 8 10 14 t clkl clock low time 8 10 14 t ds data setup time 5 6 7 t dh data hold time 2 2 2 t ens enable setup time 5 6 7 t enh enable hold time 2 2 2 t rs reset pulse width 1 20 25 35 t rss reset setup time 2 12 15 20 t rsr reset recovery time 2 12 15 20 t rsf reset to flag and output time 30 35 40 t olz output enable to output in low-z 2 000 t oe output enable to output valid 9 12 15 t ohz output enable to output in high-z 2 19112115 t wff write clock to full flag 12 15 20 t ref read clock to empty flag 12 15 20 t pa f clock to programmable almost-full flag (idt-compatible operating mode) 14 17 23 t pae clock to programmable almost-empty flag (idt-compatible operating mode) 14 17 23 t hf clock to half-full flag (idt-compatible operating mode) 14 17 23 t pa fs clock to programmable almost-full flag (enhanced operating mode) 14 17 23 t paes clock to programmable almost-empty flag (enhanced operating mode) 14 17 23 t hfs clock to half-full flag (enhanced operating mode) 14 17 23 t xo clock to expansion-out 12 15 20 t xi expansion-in pulse width 7 9 13 t xis expansion-in setup time 7 9 14 t skew1 skew time between read clock and write clock for full flag 3 91116 t skew2 skew time between write clock and read clock for empty flag 4 91116 notes: 1. pulse widths l ess than the stated mini mum values may cause incorrect operation. 2. values are g uaranteed by desi gn; not currently tested. 3. these times also apply to the programmable-almost-full and h alf-full flags when they are sync hronized to wclk. 4. these times also apply to the half-full and programmab le-a lmost-empty flags when they are synchronized to rclk. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 10
description of signals and operating sequences table 1. grouping-mode determination during a reset operation 5 emode wxi/ wen 2 rxi/ ren 2 fl/ rt mo de wxo/ hf usage wxi/ wen 2 usage rxi/ ren 2 usage fl/ rt usage rxo / ef 2 usage h 1 hhh cascaded slave 2 wxo wxi rxi fl rxo h 1 hh l cascaded master 2 wxo wxi rxi fl rxo h hlx (reserved) CCCCC h lhx (reserved) CCCCC h ll h 3 (not allowed during reset) ( hf) (none) (none) (rt) (none) h ll l 3 standalone hf (none) (none) rt (none) lxx h 3 (not allowed during reset) ( hf) (wen 2 ) (ren 2 ) (rt) ( ef 2 ) lxx l 3 interlocked paralleled 4 hf wen 2 ren 2 rt ef 2 notes: 1. in idt-compatible ca scadi ng, a reset operation forces wxo/ hf and rxo/ ef 2 high for the nth fifo, thus forcing wxi/ wen 2 and rxi/ ren 2 high for the (n + 1)st fifo. 2. the terms master and slave refer to idt-compatible cascading. in pipelined cascading 4 , there is no such distinction. 3. once grouping mode has been d etermined during a reset operation, fl/rt then may go high to activate a retran smit op eration. 4. emode must be asserted for access to the control r egister to be enabled. also, fifos being used in a pipelined-casca ding configuration should be in interlocked paralleled mode. 5. setup-time and recovery-time specifications apply during a reset operation. 6. h = high; l = low; x = dont care. table 2. expansion-pin usage according to grouping mode i/ o pi n idt-comp atible operating mode enhanced operating mode depth-cascaded master depth-cascaded slave standalone interlocked paralleled i wxi / wen 2 from wxo ((n-1)st fifo) from wxo ((n-1)st fifo) grounded from ff (other fifo) o wxo/ hf to wxi ((n+1)st fifo) to wxi ((n+1)st fifo) becomes hf becomes hf i rxi/ ren 2 from rxo ((n-1)st fifo) from rxo ((n-1)st fifo) grounded from ef (other fifo) o rxo / ef 2 to rxi ((n+1)st fifo) to rxi ((n+1)st fifo) unused becomes ef 2 i fl/ rt grounded (logic low) logic high becomes rt 1 becomes rt 1 note: 1. fl/ rt may be grounded if the retra nsmit facility is not being used. bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 11
table 3. selection of read and write operations ld wen 3,4 ren 3, 4 wclk rclk action lx x C C no operation. ll l illegal combination, which will cause errors. llh x write to a programmable register. 1 lh h x hold present value of programmable-register write counter, and do not write. 2 lh l x read from a programmable register. 1 lh h x hold present value of programmable-register read counter, and do not read. 2 hl x x normal fifo write operation. hxlx normal fifo read operation. h l x C x no write operation. hhxxx no write operation. h x l x C no read operation. h x h x x no read operation. h l l C C no operation. key: h = logic high; l = logic low; x = dont-care (logic high, logic low, or any trans ition); = a low-to-high transiti on; C = any condition except a low-to-high transition. notes: 1. the selection of a pro grammable register to be written or read is controlled by two simple state machines. one state machine controls the se- lection for writing; the other state machine controls the selection for reading. these two st ate machi nes operate independently of each other. both state machines are reset to point to word 0 by a reset op eration. in the enhanced operating mo de, if co ntrol regis ter bit 00 is set, both state machines are also re set to point to word 0 by deassertion of ld after ld has been as serted (that is, by a rising edge of ld), followed by a valid memory array write cycle for the w riting-control state machine and/or by a valid memory array read cycle for the reading-con trol state machine. 2. the order of the two programmable registers which are accessible in idt-compatible operating mode, as selected by either stat e machine, is always: word 0: a lmost -empty offset register word 1: a lmost-full offset regi ster word 0: a lmost-empty offset register ... (repeats indefinitely) ... the order of the three programmable registers which are accessible in enhanced operating mode, as selected by either state machine, is always: word 0: almost-empty offset register word 1: almost-full offset register word 2: control register word 0: almost-empty offset register ? ? ? ? (repeats ind efinitely) ? ? ? ? note that, in idt-c ompatible operating mode, word 2 is not acc essed; word 0 and word 1 alternate. 3. after normal fifo o peration has beg un, w riting new contents into ei ther of the offset registers should only be d one w hen the fifo is empty. 4. wen 2 , ren 2 , and oe may be anded terms in the enabling of read and write o perations, according to the state of the emode control input and of control register bit 05. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 12
table 4. status flags number of unread data words present within fifo 1, 2 full flag middle flags empty flag 512 18 fifo 1024 18 fifo ff paf hf pae ef 0 0 hhhl l 1 to q 1 to q h h h l h (q + 1) to 256 (q + 1) to 512 hhhhh 257 to (512 C (p + 1)) 513 to (1024 C (p + 1)) h h l h h (512 C p) to 511 (1024 C p) to 1023 h l l h h 512 1024 l l l h h notes: 1. q = programmable-almost-empty offset val ue. (d efault valu es: 512 18, q = 63; 1024 18, q = 127.) 2. p = programmable-almost-full offset value. (default values: 512 18, p = 63; 1 024 18, p = 127.) 3. only 9 (512 18) or 10 (1 024 18) of the 12 offset-val ue-register bits should be programmed. the unn eeded most-significant-end bits should be low (zero). 4. the flag output is delayed by one full clock cycle in enhanced operating mode, when synchronous operation is spe cified for i ntermedi ate flags. description of signals and operating sequences (contd) bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 13
table 5. control-register format command register bits code value after reset flag affected, if any description notes emode = h emode = l 00 l lh C deassertion of ld does not reset the programmable- register write pointer and read pointer. idt-compatible addressing of programmable registers. h deassertion of ld resets the programmable-register write pointer and read pointer to address word 0, the programmable-almost- empty-flag-offset register. the change takes effect after a valid write operation or a valid read operation, respectively, to the memory array. non-ambiguous addressing of programmable registers. 01 l lh pae set by - - rclk, reset by - - wclk. asynchronous flag clocking. h set and reset by - - rclk. synchronous flag clocking. 03, 02 ll ll hh hf set by - - wclk, reset by - - rclk. asynchronous flag clocking. lh set and reset by - - rclk. synchronous flag clocking at output port. hl, set and reset by - - wclk. synchronous flag clocking at input port. hh 04 l l h paf set by - - wclk, reset by - - rclk. asynchronous flag clocking. h set and reset by - - wclk. synchronous flag clocking. 05 l lh C oe has no effect on an internal read operation, apart from disabling the outputs. allows the read-address pointer to advance even when q 0 C q 17 are not driving the output bus. h deassertion of oe inhibits a read operation; whenever the data outputs q 0 C q 17 are in the high-z state, the read pointer does not advance. inhibits the read-address pointer from advancing when q 0 C q 17 are not driving the output bus; thus, guards against data loss. 06 l ll C reserved. future use to control depth cascading and interlocked paralleling. h 11, 10, 09, 08, 07 lllll lllll lllll C reserved. reserved. notes: 1. when emode is high, and control register bits 00-05 are low, the fifo behaves in a manner functionally equival ent to the idt72215b /25b fifo of simi lar depth and speed gra de. under these conditions, the control register is not visible or accessible to the ex- ternal system which includes the fifo. 2. if emode is not asserted (is high), control register bits 00-05 remain low after a reset operation. however, if emode is asserted (is low) d uring a reset operation, control re gister bits 00-05 are forced high, and remain high u ntil changed. control regi ster bits 06-11 are unaffected by emode. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 14
data inputs data in (d 0 C d 17 ) data, programmable-flag-offset values, and control- regi ster codes are input to the fifo as 18-bit words on d 0 C d 17 . unused bit positions in offset-value and con- trol-register words should be zero-filled. control inputs reset ( rs) the fifo is reset whenever the asynchronous reset ( rs) input is taken to a low state. a reset operat ion is required after power-up, before the first write operation may occur. the state of the fifo is fully defined after a reset operation. if the default values which are entered into the programmable-flag-offset-value registers and the control register by a reset operation are accept- able, then no device programming is required. a reset operation init ializes the fifos internal r ead-address and write-address pointers to the fifos first phy sical memory location. the five status flags, ff, paf, hf, pae, and ef, are updated to indicate that the fifo is completely empty; thus, the first three of these are reset to high, and the last two are reset to low. the flag-offset values for paf and pae each are initialized to one-eighth of the depth of a single fifo, minus one; 63 for a 512- word fifo, and 127 for a 1024-word fifo. if emode is not being as- serted (i.e., if emode is high), all control register bits are initialized to low, to configure the fifo to operate in the idt722 15b/25b-compatible operating mode. until a write operation occurs, the data outputs d 0 C d 17 all are low whenever oe is low. enhanced oper ating mode ( emode) whene ver emode is asserted during a reset op- eration, control register bits 00 C 05 remain high rather than low after the completion of the reset operation. thus, emode has the effect of activating all of the enhanced-operating-mode features during a reset operat ion. subsequently, they may be indi- vidually disabled or re-enabled by changing the set- ting of control-register bits. the behavior of these enhanced-operating-mode features is described in table 5. for permanent enhanced-operat ing-mode operation, emode must be grounded; dy namic con- trol of emode during system operation is not recom- mended. asserting emode during a reset operation also causes wxi/wen 2 to be configured as wen 2 , and rxi/ren 2 to be configured as ren 2 , to support inter- locked-paralleled operation of two fifos side by side. (see figure 27.) additionally, rxo/ ef 2 is config- ured as ef 2 , which duplicates the ef signal with one extra rck cycle delay, in order to provide proper timing for pipelined cascaded operation. write clock (wclk) a rising edge (low-t o-high transition) of wclk initi- ates a fifo write cycle if ld is high, or a programma- ble-register write cycle if ld is low. the 18 data inputs, and all input-side synchronous control inputs, must meet setup and hold times with respect to the rising edge of wclk. the input-side status flags are meaningful after specified time intervals, following a rising edge of wclk. conceptually, the wclk input receives a free-running, periodic clock waveform, which is u sed to control other signals which are edge-sensitive. however, th ere act ually is not any absolute requirement that the wclk waveform must be periodic. an asy nchronous mode of op eration is in fact possible, if wen is continuously asserted (that is, is continuously held low), and wclk receives ape- riodic clock pulses of suitable duration. there likewise is no requirement that wclk must have any particular synchronization relation to the read clock rclk. these two clock inputs may in fact receive the same clock signal; or they may receive totally-different signals, which are not synchronized to each other in any way. write enable ( wen) whenever wen is being asserted (is low) and ld is high, and the fifo is not full, an 18-bit data word is loaded into the effective input register for the memory array at every wclk rising edge (low-to-high tr ansi- tion). data words are stored into the two-port memory array sequentially, regardless of any ongoing read opera- tion. whenever wen is not being asserted (is high), the input register retains whatever data word it cont ained previously, and no new data word gets loaded into the memory array. to prevent overrunning the internal fifo boundaries, further write operations are inhibited when ever the full flag ( ff) is being asserted (is low). if a valid read operation then occurs, upon the com pletion of that read cycle ff again goes high after a time t wff , and another write operation is allowed to begin whenever wclk makes another low-to-high tra nsiti on. eff ectively, wen is overridden by ff; thus, during normal fifo operation, wen has no effect when the fifo is full. in the enhanced operating mode, whenever emode is being asserted (is low), wxi/wen 2 func- tions as wen 2 , an additional duplicate (albeit asser- tive-high) write-enable input, in order to p rovide aninterlocking mechanism for reli able synchro- nization of two paralleled fifos. to control writing, wen 2 is anded with wen; this logic-and fu nction ( wen wen 2 ) then behaves like wen in the forego- ing description. description of signals and operating sequences (cont?d) bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 15
read clock (rclk) a rising edge (low-to-high transition) of rclk initi- ates a fifo read cycle if ld is high, or a programma- ble-register read cycle if ld is low. all output-side synchronous control inputs must meet setup and hold times with respect to the rising edge of rclk. the 18 data outputs, and the output-side status flags, are meaningful after specified time intervals, following a rising e dge of rclk. conceptually, the rclk input receives a free-running, periodic clock waveform, which is used to control other signals which are edge-sensitive. however, there actually is not any absolute requirement that the rclk waveform must be periodic. an asynchronous mode of operation is in fact possible, if ren is continuously asserted (that is, is continuously held low), and rclk receives aperiodic clock pulses of suitable duration. there likewise is no requirement that rclk must have any part icular synchro- nization relation to the write clock wclk. these two clock inputs may in fact receive the same clock signal; or they may receive totally-different signals, which are not syn- chronized to each other in any way. read enable ( ren) whenever ren is being asserted (is low), and the fifo is not empty, an 18-bit data word is loaded into the output register from the memory array at every rclk rising edge (low-t o-high transition). data words are read from the two-port memory array sequentially, regard- less of any ongoing write operation. whenever ren is not being asserted (is high), the output register retains whatever data word it contained pr eviously, and no new data word gets loaded into it from the memory array. to prevent underrunning the internal fifo boundaries, further read operations are inhibited whenever the empty flag ( ef) is being asserted (is low). if a valid write operation then occurs, upon the completion of that write cycle ef again goes high after a time t ref , and another read operation is allowed to begin whenever rclk makes another low-to-high transition. effectively, ren is overridden by ef; thus, during normal fifo operation, ren has no effect when the fifo is empty. in the enhanced operating mode, one (or, some- times two) additional read-enable i nputs may be anded with ren to control reading, depending on the state of control-re gister bit 05. the additional read-enable input(s) are ren 2 (and oe). whene ver emode is being asserted (is low), rxi/ren 2 functions as ren 2 , an additional duplicate (albeit assertive-high) read-enable input, in order to provide an interlo cking mechanism for reliable synchronization of two paralleled fifos. also, if control register bit 05 has been set, oe takes on the extra role of serving as yet another duplicate read-enable i nput, in addition to its usual function of controlling the fifos data outputs, in order to inhibit further read operations w henever the fifos data outputs are disabled, and thereby to prevent data loss under s ome circumst ances. output enable ( oe) oe is an assertive-low, asynchronous, output enable. in the idt-compatible operating mode, oe has only the effect of enabling or disabling the data outputs q 0 C q 17 . that is, disabling q 0 C q 17 does not inhibit a read operation, for data being transmitted to the output register; the same data will remain available later, when the outputs are again enabled, unless subsequen tly over- written. when q 0 C q 17 are enabled, each of these 18 data outputs is in a normal high or low state, accor ding to the bit pattern of the data word in the output register. when q 0 C q 17 are disabled, each of these outputs is in the high-z (high-impedance) state. in the enhanced operating mode, if control regis- ter bit 05 has been set, oe behaves as an additional read-enable control input, as well as enabl ing and disabling the data outputs q 0 C q 17 . under these circumstances, incrementing the read-address pointer is inhibited w henever q 0 C q 17 are in the high-z state. thus, reading s uccessive words which fail ever to reach the outputs is preven ted, as a safeguard against data loss. load ( ld ) the sharp lh540215/25 fifos contain three 18-bit programmable registers. the contents of these three registers may be loaded with data from the data inputs d 0 C d 17 , or read out onto the data outputs q 0 C q 17 . the first two registers are the programmable-flag- offset- value registers, for the programmable almost- empty flag ( pae) and the programmable almost-full flag ( paf ) respectively. the third register is the control register, which includes several configurat ion-control bits for selectively enabling and disabling sharps enhanced-operating-mode features. none of these three registers makes use of all of its available 18 bits. figure 5 shows which bit positions of each register are operat ional. the two programma ble- flag-offset-value registers each contain an offset value in bits 0-8 (lh540215) or bits 0 C 9 (LH540225); bits 9 C 17 (lh540215) or bits 10 C 17 (LH540225) are unused. the default values for both offsets are one-eighth of the total number of words in the fifo memory array, m inus one: 63 for a 512 18 fifo, and 127 for a 1024 18 fifo. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 16
the control register configuration is shown in fig- ure 5 and in table 5. for the control register , in the idt-compatible operating mode, with emode deas- serted (high), the default value for all contr ol-register bits is zero (low). in the enhanced operating m ode, with emode asserted (low), the default value for bits 00-05 is high, and the default va lue for bits 06-11 is low. whenever ld and wen are simultaneously being asserted (are both low), the 18-bit data word from the data inputs d 0 C d 17 is written into the programmable- almost-empty-flag-offset-value register at the f irst ris- ing edge (low-to-high transition) of the write clock (wclk). (see table 3.) if ld and wen continue to be simultaneously asserted, another 18-bit data word from the data inputs d 0 C d 17 is written into the programma- ble-almost-full-flag-offset-value register at the second rising edge of wclk. what happens next is determined by the state of the emode control input. if it is dea sserted (high), the next 18-bit word from the data inputs d 0 C d 17 is written back into the programmable-almost-empty-flag-offset-value register again. 540215-4 programmable-almost-empty-flag-offset value 1, 2 0 9 10 17 0 17 programmable-almost-full-flag-offset value 1, 2 word 0 control register 4, 5 1 2 3 4 5 6 17 word 1 word 2 5 2 3 future use to control depth cascading and interlocked paralleling. enables suppressing reading whenever data outputs are disabled. makes paf synchronous. makes hf synchronous. (see the control-register format table for the encoding of bits 02-03.) makes pae synchronous. selects reinitialized addressing of the programmable registers. 6 5 3 6 bold italic = enhanced operating mode. 1 0 = reserved. do not load with non-zero information. 1 0 2 0 11 4 control-register bits: 4 reserved for future use. 12 7 8 3 3 notes: 1. default offset values are 63 10 = 3f 16 (lh540215) or 127 10 = 7f 16 (LH540225). 2. bits 9-17 (lh540215) or bits 10-17 (LH540225) of both offset-value registers should in all cases be programmed low (zero). 3. this bit position is used for offset values in the LH540225 only. in the lh540215, it always should be programmed low. 4. see the control-register format table for the default states of the control register, for emode = high (idt-compatible operating mode) and for emode = low (enhanced operating mode). the control register is not accessible or visible in idt-compatible operating mode. 5. the assertion of emode (low) forces control register bits 00-05 high during a reset operation. after that, these bits may be programmed at will. see table 5 for a more complete description of these effects. 9 10 8 figure 5. programmable registers description of signals and operating sequences (contd) bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 17
but, if emode is asserted (low), then still another 18-bit data word from the data inputs d 0 C d 17 is written into the control register at the third rising edge of wclk. at the fourth rising edge of wclk, writing again occurs to the programmable-almost- empty-flag-offset-value register; and the same three-step writing s equence gets repeated on sub- sequent wclk rising edges. the lower nine bits of these offset-value words are made use of by the 512-word lh540215, and the lower ten bits by the 1024-word lh54 0225. six active bits are used for the control register, by both the lh540215 and the LH540225 . there is no restriction on the values which may occur in these offset-value and control-reg- ister fields. however, reserved bit positions must be encoded low, in order to maintain forward compat ibility. writing contents to these two or three programmable registers does not have to occur all at one time, or to be effected by one single sequence of steps. whenever ld is being asserted (is low) but wen is not being asserted (is high), the fifos internal programmable-register- write-address pointer maint ains its present value, without any writing actually taking place at each rising edge of wclk. (see table 3.) thus, for instance, one or two programmable registers may be written, after which the fifo may be returned to normal fifo-array-read/write operation by deasserting ld (to high). likewise, whenever ld and ren are simultaneously being asserted (are both low) the 18-bit data word (zero-filled as necessary) from the programmable-al- most-empty-flag-offset-value register is read to the data outputs q 0 C q 17 at the first rising edge (low-to- high transition) of the read clock (rclk). (see table 3.) if ld and ren continue to be simultaneously a sserted, another 18-bit data word from the programmable-almost- full-flag- offset-value register is read to the data outputs q 0 C q 17 at the second rising edge of rclk. what happens next is determined by the state of the emode control input. if it is deasserted (high), the next 18-bit word again comes from the programm able-almost- empty- flag-offset-value register; it is read to the data outputs q 0 C q 17 . but, if emode is asserted (low), then the next 18-bit data word instead comes from the control regi ster; it is read to the data outputs q 0 C q 17 at the third rising edge of rclk. at the fourth ris ing edge of rclk, reading again occurs from the programma- ble-almost-empty-flag-offset-value register; and the same three-step reading sequence gets repeated on subsequ ent rclk rising edges. reading contents from these two or three programma- ble registers does not have to occur all at one time, or to be effected by one single sequence of steps. whenever ld is being asserted (is low) but ren is not being asserted (is high), the fifos internal programmable- register-read-addr ess pointer maintains its present value, without any reading actually taking place at each rising edge of rclk. (see table 3.) thus, for instance, one or two programmable registers may be read, after which the fifo may be returned to normal fifo-array-read/write operation by deasserting ld (to high). to ensure correct operation, the sim ultaneous r eading and writing of a register should be avoided. first load/ retransmit ( fl /rt) fl /rt is a dual-purpose signal. it is one of four input signals which select the grouping mode in which the fifo operates after being reset; the other three of these input signals are wxi / wen 2 , rxi / ren 2, and emode. there are four possible grouping modes: standalone, inter- locked paralleled , cascaded master or first-load, and cascaded slave. the designations mas ter and slave pertain to idt-compatible depth cascading. t ables 1 and 2 show the signal encodings which select each grouping mode. in standalone or paralleled operation, the fl/ rt pin should be grounded for strict i dt72215b/25b-compatible operation. however, if it is taken high, regardless of the state of the emode control input, the fifos internal read-address pointer is reset to address the fifos first physical memory location, without the other usual reset actions being taken; in particular, the fifos internal write-address pointer is unaf- fected. subsequent read operations may then again read out the same block of data, delimited by the fifos first physical memory location and the current value of the write pointer, as was read out previously. there is no limit on the number of times that a block of data may be retransmitted. the only restrictions are that neither the read-address pointer nor the write-address pointer may wrap around and address the fifos first physical memory location a second time during the retransmission process, and that the retransmit facility is unavailable during cascaded opera- tion. in idt-compatible cascaded operati on, fl/ rt is grounded for the master or first -load fifo, to distinguish it from the other slave fifos in the cascade, which must all have their fl/ rt inputs high during a reset operation. (see again tables 1 and 2.) the cascade will not op erate correctly either without any master fifo, or with more than one master fifo. write expansion input/ write enable 2 ( wxi/ wen 2 ) wxi /wen 2 is a dual-purpose signal. it is one of four input signals which select the grouping mode in which the fifo operates after being reset; the other three of these input signals are fl/ rt , rxi/ ren 2 , and emode . there are four possible grouping modes: standalone, inter- bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 18
locked paralleled , cascaded master or first-load, and cascaded slave. the designations master and slave pertain to idt-compatible depth cascading. tables 1 and 2 show the signal encodings which select each grouping mode. in standalone operation, wxi/ wen 2 and rxi/ ren 2 both must be grounded so that the fifo comes up in the standalone grouping mode after a r eset operation. in interlocked-paralleled operati on, wxi/wen 2 is tied to ff of the other paralleled fifo, and rxi/ren 2 is tied to ef of that same other fifo. this inter connection scheme ensures that both fifos will operate together, and remain coordinated, regardless of tim- ing skews. in cascaded operation, wxi/ wen 2 is connected to the wxo (write ex pansion output; actually wxo/ hf) output of the previous fifo in the cascade. rxi/ ren 2 is likewise connected to the rxo (read expansion output; actually rxo/ ef 2 ) output of that previous fifo. a reset operation forces wxo/ hf and rxo/ ef 2 high for each fifo; consequently, all fifos with their wxi/ wen 2 and rxi/ ren 2 inputs thus connected come up in one of the two cascaded grouping m odes, according to whether their fl/ rt inputs are grounded or tied high. (see again tables 1 and 2.) read expansion input/ read enable 2 ( rxi/ ren 2 ) rxi /ren 2 is a dual-purpose signal. it is one of four input signals which select the grouping mode in which the fifo operates after being reset; the other three of these input signals are fl/ rt , wxi/ wen 2 , and emode . there are four possible grouping modes: st andalone, inter- locked-paralleled , cascaded master or first-load, and cascaded slave. the designations master and slave pertain to idt-compatible depth cascading. tables 1 and 2 show the signal encodings which select each grouping mode. in standalone operation, wxi/ wen 2 and rxi/ ren 2 both must be grounded, so that the fifo comes up in the standalone grouping mode after a r eset operation. in interlocked-paralleled operation, wxi/wen 2 is tied to ff of the other paralleled fifo, and rxi/ren 2 is tied to ef of that same other fifo. this inter connection scheme ensures that both fifos will operate to- gether, and remain coordinated, regardless of timing skews. in cascaded operation, rxi/ ren 2 is connected to rxo (read expansion output; actually rxo/ ef 2 )) of the previous fifo in the cascade. wxi/ wen 2 is likewise connected to wxo (write expansion output; act ually wxo/hf) output of that pr evious fifo. a reset operation forces rxo/ ef 2 and wxo/ hf high for each fifo; consequently, all fifos with their rxi/ ren 2 and wxi/ wen 2 inputs thus connected come up in one of the two idt-compatible cascaded grouping modes, accord- ing to whether their fl/ rt inputs are grounded or tied high. (see again tables 1 and 2.) data outputs data out (q 0 C q 17 ) data, programmable-flag-offset values, and control- register codes are output from the fifo as 18-bit words on q 0 C q 17 . unused bit positions in offset-value words and control-register words are zero-filled. control/status outputs full flag ( ff) ff goes low whenever the fifo is completely full. that is, when ever the fifos internal write pointer has completely caught up with its internal read pointer; so that, if another word were to be written, it would have to overwrite the unread word which is now in position for reading out by the next requested read operation. under these conditions, the fifo is filled to its nominal capacity, which is 512 18-bit words for the lh540215 or 1 024 18-bit words for the LH540225 re spectively. write operat ions are inhibited whenever ff is low, regardless of the assertion or deassertion of write enable ( wen). if the fifo has been reset by asserting rs (low), ff initially is high. but, when ever no read operations have been performed since the completion of the reset opera- tion, ff goes low after 512 write operations for the lh540215, or after 1024 write operations for the LH540225. (see table 4.) ff gets updated after a low-to-high transition of the write clock (wclk). programmable almost-full flag ( paf) paf goes low whenever the fifo is almost full; that is, whenever subtracting the value of the fifos internal read pointer from the value of its internal write pointer yields a difference which is less than the value of the programmable-almost- full- flag offset p. the sub- traction is performed using modular arithmetic, modulo the total nominal number of 18-bit words in the fifos physical memory, which is 512 for the lh540215 or 1024 for the LH540225 res pectively. the default value of p after the completion of a reset operation is one-eighth of the total number of words in the fifo-memory array, minus one: 63 10 for the lh540215 or 127 10 for the LH540225 res pectively. however, p may be set to any value which does not exceed this total nominal number of words for the device, as explained in the description of load ( ld). description of signals and operating sequences (contd) bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 19
if the fifo has been r eset by asserting rs (low), and no read operations have been performed since the completion of the reset operation, paf goes low after (512-p) write operations for the lh540215, or after (1024-p) write operations for the LH540225. (see table 4.) if p is still at its default value, paf is low whenever the fifo is from seven-eighths full to com pletely full. in the idt-compatible operating mode, paf changes from high to low only after a low-to-high transition of the write clock wclk, and from low to high only after a low-to-high transition of the read clock rclk. thus, in this operating mode, paf behaves as an asyn- chronous flag. in the enhanced operating mode, on the other hand, paf gets updated only after a low-to-high transition of the write clock wclk, and thus behaves as a synchronous flag, whenever control register bit 04 is high. (see table 5.) write expansion out/ha lf-full flag ( wxo/ hf) wxo/ hf is a dual-purpose signal. in standalone op- eration, it behaves as a half-full flag ( hf), in accordance with table 4. in idt-compatible cascaded operation, it behaves as a write expansion output ( wxo) signal to coordinate writing operations with the next fifo in the cascade. under these same conditions, also, the dual- purpose wxi/ wen 2 and rxi/ ren 2 inputs behave as write expansion input ( wxi) and read expansion input ( rxi) signals respectively. when two or more lh54 0215 or LH540225 fifos are cascaded to operate as a de eper effective fifo, in an idt-style daisy-chain ring configuration, the write ex- pansion input ( wxi) of each fifo is connected to wxo of the previous fifo in the ring, with wxi of the first-load or master fifo being connected to wxo of the last fifo so as to complete the ring. similar con nections are made for each fifo in the ring, parallel to these wxo-to- wxi connections, for read expansion input ( rxi) and read expansion output ( rxo/ ef 2 , when it is behaving as rxo). when the last physical location has been written in a fifo operating in cascaded mode, a low-going pulse is emitted by that fifo on its wxo output, and the fifo is deactivated for writing at the next valid wclk; and the next fifo in the ring is simultaneously activated for writing. otherwise, wxo remains constantly high when- ever the fifo is operating in cascaded mode. this low- going wxo pulse serves as a write token in the token-passing fifo-cascading scheme; it is passed on to the next fifo in the ring via its wxi input. when this next fifo receives the write token, it is activated for writing at the next valid wclk. the foregoing description applies both to the first-load or master fifo in the r ing, and to any and all slave fifos in the ring. however, wxo has no necessary function for fifos operating in the standalone mode. consequently, in that mode, the same output pin is used for hf; it follows that hf is not available as an output from any fifo which is operating in the idt-compatible cas- caded mode. a fifo is initialized into cascaded master mode, into cascaded slave mode, into interlocked -par- alleled mode , or into standalone mode according to the state of its wxi/ wen 2 , rxi/ ren 2 , and fl/ rt control inputs during a reset operation, and of emode . (see table 1, table, 2, and table 5.) in standalone or interlocked-paralleled operation, hf goes low whenever the fifo is more than half full; that is, whenever subtracting the value of the fifos internal read pointer from the value of its internal write pointer yields a difference which is less t han half of the total nominal number of 18-bit words in the fifos physi- cal memory, which is 256 for the lh540215 or 512 for the LH540225 respectively. (see table 4.) the subtraction is performed using modular arithmetic, modulo this total nominal number of words, which is 512 for the lh540215 or 1024 for the LH540225 respectively. if the fifo has been reset by asserting rs (low), and it is operating in standalone mode or in interlocked -par- alleled mode, and no read operations have been per- formed since the completion of the reset operation, hf goes low after 257 write operat ions for the lh540215, or after 513 write operations for the LH540225. (see again table 4.) in the idt-compatible operating mode, hf changes from high to low only after a low-to-high transition of the write clock wclk, and from low to high only after a low-to-high transition of the read clock rclk. thus, in this operating mode, hf behaves as an asyn- chronous flag. in the enhanced op erating mode, on the other hand, hf gets updated only after a low-to-high transition of the read clock rclk, or else after a low-to-high transition of the write clock wclk, according to the setting of bits 03 and 02 of the control register (see table 5). thus, in this mode hf behaves as a synchronous flag, and may be syn- chronized either to the input side of the fifo (i.e., to wclk), or to the output side of the fifo (i.e., to rclk). programmable almost-empty flag ( pae) pae goes low whenever the fifo is almost empty; that is, whenever subtracting the value of the fifos internal write pointer from the value of its internal read pointer yields a difference which is less than q + 1, where q is the value of the programmable-almost-empty-flag offset. the subtraction is performed using modular arith- metic, modulo the total nominal number of 18-bit words bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 20
in the fifos p hysical memory, which is 512 for the lh540215 or 1024 for the LH540225 respectively. the default value of q after the completion of a reset operation is one-eighth of the total number of words in the fifo-memory array, minus one; 63 for the lh540215 or 127 for the LH540225 res pectively. however, q may be set to any value which does not exc eed this total no minal number of words for the device, as explained in the description of load ( ld). if the fifo has been reset by asserting rs (low), and no write operations have been performed since the com- pletion of the reset operation, then pae is low. (see table 4.) if q is still at its default value, pae is low whenever the fifo is from one-eighth f ull to completely empty. in the idt-compatible operating mode, pae changes from high to low only after a low-to-high transition of the read clock rclk, and from low to high only after a low-to-high transition of the write clock wclk. thus, in this operating mode, pae behaves as an asyn- chronous flag. in the enhanced operating mode, on the other hand, pae gets updated only after a low-to-high transition of the read clock rclk, and thus behaves as a synchronous flag, w henever control register bit 01 is high. (see table 5.) empty flag ( ef) ef goes low whenever the fifo is completely empty. that is, whenever the fifos internal read pointer has completely caught up with its internal write pointer; so that, if another word were to be read out, it would have to come from the physical m emory loc ation which is now in position to be written into by the next requested write operation. read operations are inhibited when ever ef is low, regardless of the assertion or deassertion of read enable ( ren). if the fifo has been reset by asserting rs (low), and no write operations have been performed since the completion of the reset operation, then ef is low. (see table 4.) ef gets updated after a low-to-high transition of the read clock rclk. read expansion out/ empty flag 2 ( rxo / ef 2 ) rxo/ ef 2 is a dual-purpose signal. in standalone operation, it has no function. in idt-compatible cas- caded operation, it behaves as a read expansion output ( rxo) signal to coordinate writing operations with the next fifo in the cascade. under these same conditions, also, the dual-purpose rxi/ ren 2 and wxi/ wen 2 inputs behave as read expansion input ( rxi) and write expan- sion input ( wxi) signals respectively. when two or more lh540215 or LH540225 fifos are operating in idt-compatible cascaded mode as a deeper effective fifo, the dual-purpose rxi/ ren 2 and wxi/ wen 2 inputs behave as read expansion input ( rxi) and write expansion input ( wxi) signals respec- tively. an idt-style cascade of these fifo devices has a daisy-chain ring configuration; the read expansion input ( rxi) of each fifo is connected to rxo ( rxo/ ef 2 , behaving as rxo) of the previous fifo in the ring, with rxi of the first-load or master fifo being connected to rxo of the last fifo so as to complete the ring. sim ilar connections are made for each fifo in the ring, parallel to these rxo-to- rxi connections, for write expansion input ( wxi) and write expansion output ( wxo). when the last physical location has been read in a fifo operating in idt-style cascaded mode, a low-go- ing pulse is emitted by that fifo on its rxo output; otherwi se, rxo remains constantly high. this low-go- ing rxo pulse serves as a read token in the t oken-pass- ing fifo-cascading scheme; it is passed on to the next fifo in the ring via its rxi input. w hen this next fifo receives the r ead token, it is activated for reading at the next valid rclk. after a fifo emits an rxo pulse, the fifo is deacti- vated for reading at the next valid rclk. also, its data outputs go into high-z state, regardless of the assertion or deassertion of its output enable ( oe) control input, until it again receives the token. simultaneously, the next fifo in the ring is activated for reading. the foregoing description applies both to the first-load or master fifo in the ring, and to any and all slave fifos in the ring. however, rxo has no necessary function for a fifo which is operating in standalone mode. consequently, in that m ode, rxo is never as- serted, and remains constantly high. a fifo is init ialized into standalone mode, into cascaded master mode, or into cascaded slave mode according to the state of its wxi/ wen 2 , rxi/ ren 2 , and fl/ rt control inputs during a reset operation. it also may be forced into inter- locked-paralleled mode by emode. (see table 1, table 2, and table 5.) in the enhanced operating mo de, rxo/ ef 2 be- haves as a second empty flag ef 2 . ef 2 is an exact duplicate of the main empty flag ef, except that it is delayed with respect to ef by one full cycle of the read clock rclk. description of signals and operating sequences (contd) bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 21
timing diagrams t rs t rsr t rsf t rsf t rsf q 0 - q 17 ff, paf, hf ef, pae ren, wen, ld rs oe = high 1 oe = low 540215-5 notes: 1. after reset, the outputs will be low if oe = low, and in a high-impedance state if oe = high. 2. the clocks (rclk, wclk) may be free-running during a reset operation. t rss figure 6. reset timing lh540215/25 512 x 18/1024 x 18 synchronous fifo 22
t ds no operation t ens t wff t skew1 (1) t clkh t clk t clkl t dh t enh t wff wclk d 0 - d 17 wen ff rclk ren 540215-6 note: 1. t skew1 is the minimum time between a rising rclk edge and a rising wclk edge for ff to change predictably during the current clock cycle. if the time between the rising edge of rclk and the rising edge of wclk is less than t skew1 , then it is not guaranteed that ff will change state until the next following wclk edge. valid data in figure 7. synchronous write operation timing diagrams (contd) bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 23
t clkh t clk t clkl wclk q 0 - q 17 ren rclk ef valid data out t ens t enh no operation t ref t ref t a t oe t olz t ohz t skew2 (1) oe wen 540215-7 note: 1. t skew2 is the minimum time between a rising wclk edge and a rising rclk edge for ef to change predictably during the current clock cycle. if the time between the rising edge of wclk and the rising edge of rclk is less than t skew2 , then it is not guaranteed that ef will change state until the next following rclk edge. figure 8. synchronous read operation timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 24
t ds t ens q 0 - q 17 ren rclk ef oe wen 540215-8 d 0 (first valid wrte) d 1 d 2 d 3 d 4 d 0 d 1 t frl (2) t skew2 (1) t ref t a (3) t a t olz t oe d 0 - d 17 wclk notes: 1. t skew2 is the minimum time between a rising rclk edge and a rising wclk edge for ff to change predictably during the current clock cycle. if the time between the rising edge of rclk and the rising edge of wclk is less than t skew2 , then it is not guaranteed that ff will change state until the next following wclk edge. 2. t frl (first-read latency) is the minimum time between a rising wclk edge and a rising rclk edge to assure a correct readout of the first data word d 0 in response to the next rclk edge. thus, t frl = t clk + t skew2 . if t frl is not met, d 0 may be available either at t clk + t skew2 , or after one more clock cycle delay at 2 t clk + t skew2 . the first-read latency timing restrictions apply only when the fifo has been empty (ef = low). 3. ef may be used to determine when the first data word d 0 may be read. d 0 always is available on the next cycle after ef has gone high. figure 9. latency for the first data word after a reset operation, with simultaneous read and write timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 25
540215-9 q 0 - q 17 ren rclk ff oe wen d 0 - d 17 wclk data write data write data read low data in output register next data read no write no write t skew1 1 t ds t ds t skew1 1 t wff t wff t wff t ens t enh t ens t enh t a t a note: 1. t skew1 is the minimum time between a rising rclk edge and a rising wclk edge for ff to change predictably during the current clock cycle. if the time between the rising edge of rclk and the rising edge of wclk is less than t skew1 , then it is not guaranteed that ff will change state until the next following wclk edge. figure 10. full-flag timing timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 26
540215-10 q 0 - q 17 ren rclk ef oe wen d 0 - d 17 wclk data read t ds data in output register t ds data write 1 data write 2 t ens t enh t enh t ens t frl (2) t skew2 (1) t skew2 (1) t ref t ref t ref t a t frl (2) notes: 1. t skew2 is the minimum time between a rising wclk edge and a rising rclk edge for ef to change predictably during the current clock cycle. if the time between the rising edge of wclk and the rising edge of rclk is less than t skew2 , then it is not guaranteed that ef will change state until the next following rclk edge. 2. t frl (first-read latency) is the minimum time between a rising wclk edge and a rising rclk edge to assure a correct readout of the first data word d 0 in response to the next rclk edge. thus, t frl = t clk + t skew2 . if t frl is not met, d 0 may be available either at t clk + t skew2 , or after one more clock cycle delay at 2 t clk + t skew2 . the first-read latency timing restrictions apply only when the fifo has been empty (ef = low). 3. ef may be used to determine when the first data word d 0 may be read. d 0 always is available on the next cycle after ef has gone high. low bold italic = enhanced operating mode. ef 2 t ref t ref figure 11. empty-flag timing timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 27
wclk clkl t clkh t clk t t ens t enh t ens t ds t dh pae offset paf offset control register ld wen d 0 - d 15 540215-11 figure 12. programmable-register write operation rclk clkl t clkh t clk t t ens t enh t ens t a control register ld ren q 0 - q 15 unknown pae offset paf offset 540215-12 figure 13. programmable-register read operation timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 28
540215-13 wclk wen q + 1 words in fifo q words in fifo ren rclk pae note: 1. pae offset = q. also, number of data words written into fifo already = q. t clkh t clkl t ens t enh t ens t pae t pae figure 14. program mable-almost-empty flag timing, idt-compatible operating mode timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 29
540215-23 q 0 - q 17 ren rclk pae oe wen d 0 - d 17 wclk data read t ds data in output register t ds data write 1 data write 2 t ens t enh t enh t ens t skew2 (1) t skew2 (1) t paes t paes t paes t a low notes: 1. t skew2 is the minimum time between a rising wclk edge and a rising rclk edge for pae to change predictably during the current clock cycle. if the time between the rising edge of wclk and the rising edge of rclk is less than t skew2 , then it is not guaranteed that pae will change state until the next following rclk edge. 2. pae offset = q. also, number of data words written into fifo already = q. 3. the internal state of the fifo: at , q+1 words. at , q words. at , q+1 words again. enhanced operating mode timing diagram b a c a b c figure 15. program mable-almost-empty flag timing, when synchronous (enhanced operating mode ) timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 30
540215-14 wclk t ens (1) wen 512 - p words in fifo (2) 511 - p words in fifo (3) ren rclk paf notes: 1. paf offset = p. number of data words written into fifo already = 511 - p for the lh540215 and 1023 - p for the LH540225. 2. 512 - p words in fifo for lh540215. 1024 - p words in fifo for LH540225. 3. 511 - p words in fifo for lh540215. 1023 - p words in fifo for LH540225. t ens t paf t paf t enh t clkh t clkl figure 16. programmable almost-full-flag timing, idt-compatible operating mode timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 31
540215-24 q 0 - q 17 ren rclk paf oe wen d 0 - d 17 wclk data write data write data read low data in output register next data read no write t skew1 (1) t ds t ds t skew1 (1) t pafs t pafs t pafs t ens t enh t ens t enh t a t a no write notes: 1. t skew1 is the minimum time between a rising rclk edge and a rising wclk edge for paf to change predictably during the current clock cycle. if the time between the rising edge of rclk and the rising edge of wclk is less than t skew1 , then it is not guaranteed that paf will change state until the next following wclk edge. 2. paf offset = p. number of data words written into fifo already = 511 - p for the lh540215 and 1023 - p for the LH540225. 3. the internal state of the fifo: at , 511 - p words in fifo for lh540215 and 1023 - p words in fifo for LH540225. at , 512 - p words in fifo for lh540215 and 1024 - p words in fifo for LH540225. at , again, 511 - p words in fifo for lh540215 and 1023 - p words in fifo for LH540225. enhanced operating mode timing diagram a b c a c b figure 17. programmable-almost-full-flag timing, when synchronous (enhanced operating mode ) timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 32
540215-15 wclk t clkh wen half full +1 or more half full or less ren rclk hf t clkl t ens t enh t hf t hf t ens half full or less figure 18. half-full-flag timing, idt-compatible operating mode timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 33
540215-25 q 0 - q 17 ren rclk hf oe wen d 0 - d 17 wclk data write data write data read low data in output register next data read t skew1 1 t ds t ds t skew1 1 t hfs t hfs t hfs t ens t enh t ens t enh t a t a notes: 1. t skew1 is the minimum time between a rising rclk edge and a rising wclk edge for hf to change predictably during the current clock cycle. if the time between the rising edge of rclk and the rising edge of wclk is less than t skew1 , then it is not guaranteed that hf will change state until the next following wclk edge. 2. the internal state of the fifo: at , exactly half full. at , half+1 words. at , exactly half full again. enhanced operating mode timing diagram no write no write a b c a b c figure 19. half-full-flag timing, when synchronized to input port (enhanced operat ing m ode) timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 34
540215-26 q 0 - q 17 ren rclk hf oe wen d 0 - d 17 wclk data read t ds data in output register t ds data write 1 data write 2 t ens t enh t enh t ens t skew2 (1) t skew2 (1) t hfs t hfs t hfs t a note: 1. t skew2 is the minimum time between a rising wclk edge and a rising rclk edge for hf to change predictably during the current clock cycle. if the time between the rising edge of wclk and the rising edge of rclk is less than t skew2 , then it is not guaranteed that hf will change state until the next following rclk edge. 2. the internal state of the fifo: at , half+1 words. at , exactly half full. at , half+1 words again. low enhanced operating mode timing diagram a b c a b c t ens t enh figure 20. half-full-flag timing, when synch ronized to output port (enhanced op erating mode) timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 35
q [17:0] rclk fl/rt ff paf hf pae ef ren 1 540215-28 d r1 t ens t rsf d rt1 2 d rt2 notes: 1. it is not necessary for ren to be low for the device to recognize a retransmit request. 2. in order to actually read data words from the memory arrary, in idt-compatible operating mode, ren = low; in enhanced operating mode, also ren 2 = high (and oe = low, if control register bit 05 = high). in any case, ld = high. 3. d rt1 is the data item in physical location zero of the fifo memory array. 4. the asynchronous intermediate flags (corresponding to low control-register bits) will show correct status three rclk cycles after a retransmit operation, as is shown above. (rt 3 , in the above rclk waveform.) 5. the intermediate flags which have been synchronized to rclk, by setting the appropriate control-register bits to high will show correct status after , four rclk cycles after a retransmit operation. (rt 4 , in the above rclk waveform.) 6. the intermediate flags which have been synchronized to wclk, by setting the appropriate control-register bits high, will show correct status on the second wclk rising edge after , assuming that t skew1 was satisfied at ; otherwise the flags will become valid on the third wclk rising edge after . 7. immediately after a reset operation, before any write operations have taken place, a retransmit operation is a 'no-op', and does not change the state of any fifo registers or flags. 8. in the special case that the fifo memory array contains only one valid data item, the status of hf and paf should be ignored on a retransmit. t ens t enh d r2 t a t a t paf r 1 r 2 rt 1 rt 2 rt 3 rt 4 t wff t hf t pae t ref new valid ff new valid paf new valid hf new valid pae new valid ef unknown unknown unknown previous valid ff previous valid paf previous valid hf previous valid pae previous valid ef ab a b t a t a a a figure 21. retransmit timing timing diagrams (contd) lh540215/25 512 x 18/1024 x 18 synchronous fifo 36
wclk wxo wen (note) note: write to last physical location. 540215-16 t xo t xo t clkh t ens figure 22. write-expansion-out timing, idt-compatible operating mode rclk rxo ren (note) note: read from last physical location. 540215-17 t xo t xo t clkh t ens figure 23. read-expansion-out tim ing, idt-compatible operating mode wxi wclk 540215-18 t xi t xis figure 24. write-expansi on-in timing, idt-compatible operating mode timing diagrams (contd) 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 37
applications information standalone configuration when depth cascading is not required for a given application, the lh540215/25 is placed in standalone mode by tying the two expansion in pins wxi/ wen 2 and rxi/ ren 2 to ground, while also holding the first load/retransmit pin fl/ rt low for the duration of any reset operation. (see table 1.) subsequently, fl/ rt may be taken high at will, whenever a retransmit operation is desired. if not being used, fl/rt also may be tied to ground, as shown in figure 26. width e xpansion word-width expansion is implemented by placing mul- tiple lh540215/25 devices in parallel. each device should be conf igured for standalone mode, unless the depth of one single fifo is not adequate for the application. in this event, word-width ex pansion may in principle be used with either of the two depth-cascading schemes sup- ported by the lh540215/25 architecture. in practice, the reliability benefits of interlocked-par alleled operation are available only with the pipelining scheme, making it the preferred alternative. (refer to discussion in a later sec- tion.) rxi rclk 540215-19 t xi t xis figure 25. read-expansion-in timing, idt-compatible operating mode write enable (wen) write clock (wclk) load (ld) data in full flag (ff) programmable almost-empty flag (pae) half-full flag (wxo/hf) read clock (rclk) read enable (ren) output enable (oe) data out empty flag (ef) programmable almost-full flag (paf) write expansion in (wxi/ wen 2 ) first load (fl/ rt ) (must be low during a reset operation) 540215-21 lh540215/25 reset (rs) enhanced mode (emode) bold italic = enhanced operating mode. read expansion in (rxi/ ren 2 ) d[17:0] q[17:0] 18 18 figure 26. standalone fifo (512 18 / 1024 18) timing diagrams (contd) bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 38
when standalone-mode lh540 215/25 devices are paralleled, the behavior of the status flags is identical for all devices; so, in principle, a representative value for each of these flags could be derived from any one device. in practice, it is better to derive compo site flag values using external logic, since there may be minor speed variations between different actual devices. after writing or reading have been in a disabled state, the process of re-enabling should be gated by the slowest fifo. for m paralleled fifos, the form of this external composite-flag logic may be an or gate with m asser- tive-low inputs and an assertive-low output. in keep- ing with demorgans theorem, such a gate may be implemented as an and gate with m assertive-high inputs and an assertive-high output. figure 27 illustrates the case m = 2. the lh540215/25 architecture supports two very dif- ferent methods of depth cascading: token passing, which follows the scheme used in the pin-com patible and functionally-compatible integrated device technology idt72205b/15b/25b/35b/45b fifos, which the lh540215/25 can directly replace. pipelining, which follows the scheme used in the texas instruments sn74act7801/11/81 fifos, and also in the sharp lh543620 1024 36 fifo. the sn74act7801/11/81 pinout closely resembles the lh54 0215/25 pinout, but is not identical. depth cascading using token passing using the token-passing appr oach, depth casc ading is implemented by configuring the required number of lh540215/25s in a circular r ing fashion, with the expan- sion out outputs ( wxo/ hf and rxo/ ef 2 ) of each de vice tied to the expansion in inputs ( wxi/ wen 2 and rxi/ ren 2 ) of the next device. (see figure 28.) because a reset operation forces the wxo/ hf and rxo/ ef 2 outputs high for each device, the wxi/ wen 2 and rxi/ ren 2 inputs for the next device are high during the reset operation; thus, these two inputs are high for all devices in the ring. (see tables 1 and 2, and also figure 28.) all devices in the cascade must be in the idt-com- patible operating mode; thus, their emode inputs must be tied to vcc. one fifo in the cascade must be designated as the first-load device, by tying its first load input ( fl/ rt ) to ground. all other devices must h ave their fl/ rt inputs tied high. under these circumstances, the retransmit function is not available for use. in this mode, the control inputs which govern writing (wclk and wen) and the control inputs which govern reading (rclk and ren) are shared by all devices, while logic within each lh540215/25 governs the steering of data. the common data inputs of all devices are tied together; but only one lh540215/25 is enabled during any given write cycle. likewise, the common three-state data outputs of all devices are wire-ored together; but only one lh540215/25 is enabled, including its three- state outputs, during any given r ead cycle. a data word is handled only by one device as it passes through the cascade of fifos, regardless of how m any fifos are being cascaded together. in the token-passing depth-cascaded mode, external logic should be used to generate a composite full flag and a composite empty flag, by anding the ff outputs of all lh540215/25 devices together and by anding the ef outputs of all devices together, using and gates with assertive-low inputs and an assertive-low output. here, the meaning of these composite f lags is direct: the cascade of fifos is full, if and only if all k fifos belonging to the cascade are individ ually fu ll; and similarly for empty. in keeping with demorgans t heorem, these k-input as- sertive-low and gates are implemented physically as k-input assertive-high or gates. figure 28 illustrates the case k = 3. similar external logic also may be used to generate a composite programmable almost-full flag and a com- posite programmable almost-empty flag, by anding the paf outputs of all lh54 0215/25 devices together and by anding the pae outputs of all devices together. here, however, some careful analysis is required, to determine exactly what the resulting composite flags mean. t heir significance may vary widely, depending on the number of fifos in the cascade, and on the offset values which are present in the offset registers for these fifos. more complex logical co mbinat ions of paf outputs with ff outputs, and of pae outputs with ef outputs, may be found useful in particular applicat ions. in any case, the half- full flag and the retransmit function are not available for devices being used in token- passing depth-cascaded mode. bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 39
hf wclk wen ld rs paf ff ef 2 fl/rt rclk ren oe pae ef ren 2 wen 2 emode hf wclk wen ld rs paf ff ef 2 rclk ren oe pae ef ren 2 wen 2 emode fl/rt read clock read enable output enable efc data out paec write clock write enable load ffc data in reset pafc retransmit (must be low during a reset operation hfc d[17:0] q[17:0] 540215-32 d[17:0] q[17:0] 18 18 18 18 36 36 note: bold italic = enhanced operating mode. figure 27. interlocked-paralleled word-wi dth expansion lh540215/25 512 x 18/1024 x 18 synchronous fifo 40
540215-27 write clock write enable reset read clock read enable output enable data in ef pae first load data out ff paf load write-token pulse (composite flags) (composite flags) read-token pulse notes: grounding fl designates the 'first-load' fifo ('master' fifo). the remaining fifos are 'slave' fifos. v cc wxo wclk wen ld rs paf ff rxo fl rclk ren oe pae ef rxi wxi emode d[17:0] q[17:0] wxo wclk wen ld rs paf ff rxo fl rclk ren oe pae ef rxi wxi emode d[17:0] q[17:0] wxo wclk wen ld rs paf ff rxo fl rclk ren oe pae ef rxi wxi emode d[17:0] q[17:0] v cc v cc v cc v cc 18 18 18 18 18 18 18 18 bold italic = enhanced operating mode. figure 28. synchronous-fifo depth-cascading using idt-compatible token-passing sc heme 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 41
depth cascading using pi pelining using the pipelining approach, depth cascading is implemented by connecting the r equired number of lh540215/25s in se ries. within the cascade, the data outputs of each device are connected to the data inputs of the next device. (see figure 29a.) all devices in the cascade must be in the enhanced operating mode ; thus, their emode inputs must be grounded. successive devices in the cascade are crosscoupled; they control each other, using a ha ndclasp scheme for crossconnecting their control inputs and their status out- puts. (see again figure 29a.) the input side of the first device, and the output side of the last device, are not crosscoupled to other devices. their control/status and clock pins are con nected to the external system. for the fifo devices within the cascade, transferring data from each device to the next device is governed by a clock. preferably, the same clock should be used at every fifo-to-fifo data-transfer interface boundary within the cascade. this transfer clock may be either the external write clock, or the external read clock. if both of these two clocks are periodic and free-running, the faster of the two is the obvious choice for the transfer clock. of course, in pr inciple, the transfer clock may even be some other, totally-different clock. the empty flag of each device is used to govern writing into the next device, and the full flag of each device is used to govern reading from the preceding device. since the standard empty flag ef occurs one rclk cycle too early to properly enable/disable the next device, the duplicate empty flag ef 2 is used instead; ef 2 is an exact copy of ef, except that it is delayed by one full rclk cycle with respect to ef. also, since the usual enable signals wen and ren have the wrong polarity to function prope rly in this hand- clasp mode, they are grounded for all devices within the cascade. the duplicate but inverted signals wen 2 and ren 2 are used instead. ef 2 , wen 2 , and ren 2 are available only in en- hanced operating mode. they share the s ame pins which in idt-compatible operating mode are used respectively for rxo, wxi, and rxi. hence, for pipe- lined operation, all devices in the cascade must be in the enhanced operating mode; their emode control inputs must be grounded. when all of the foregoing conditions have been met in the interconnection of the pipelined array, then: at each device-to-device interface boundary within the array, a data word is transferred from the upstream device to the downstream device after every transfer-clock rising edge, as long as the upst ream device is not empty and the downstream device is not full. there is one possible anomalous behavior, which can occur if at any time the device upstream from a fifo-to- fifo boundary (device n-1) becomes totally empty, at the same time as the downstream device (device n) becomes totally full. under these relatively-infrequent conditions, one extra copy of the last word transferred out of device n-1, which remains still available at the outputs of that device, gets introduced into the data stream. the simple circuit illustrated in figure 29b avoids introducing this extra word, and does not slow down the operation of the pipeline if it is implemented with logic which is suffi- ciently fast. table 6 indicates the speed requirements for this circuit which correspond to the various speed grades of lh540215/25. if the infrequent introduction of such an extra word is not of concern for a given cascaded- lh540215/25 application, the circ uit of figure 29b may safely be omitted. table 6. required external-logic speeds for pipelined depth-cascading operation at maximum rate of speed grade speed grade (cycle time) 20 ns 25 ns 35 ns ta 8 ns 10 ns 15 ns tb 15 ns 19 ns 28 ns notes: 1. ta is the setup time for the signal ff (device n), including the delay of the assertive-low and g ate, with resp ect to the clock. 2. tb is the clock-to-output time for the si gnal wen 2 (device n), including the delay of the assertive-high and gate. two plds (programmable logic devices) suffice to implement the circuit of figure 29b ten times, which allows for the cascading of lh540215/25s eleven deep. the choice of a gal20ra10b-10 pld to implement the flipflop and the two and gates at its inputs, and a gal22v10c-5 pld to implement the simple and gate which follows the flipflop, provides a sufficiently fast circuit to allow a cascade of lh540215/25-20 devices (the fast- est speed grade presently offered by sharp) to operate with no speed degradation. designers experienced in using plds may recognize other implementations. bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 42
write clock write enable load data in full v cc reset v cc v cc v cc transfer clock read clock read enable data out hf wclk wen ld rs paf ff ef 2 fl rclk ren oe pae ef ren 2 wen 2 hf wclk wen ld rs paf ff ef 2 rclk ren pae ef ren 2 wen 2 hf wclk wen ld rs paf ff ef 2 rclk ren pae ef ren 2 wen 2 fl fl emode oe emode oe emode a a d[17:0] q[17:0] d[17:0] q[17:0] d[17:0] q[17:0] almost full almost empty empty output enable notes: 1. the transfer clock may be any free-running clock. however, it is recommended that the faster of the write clock and the read clock be used, if both of these are free-running clocks. 2. block 'a' contains the circuit shown in figure 29b. 540215-30 18 18 18 18 bold italic = enhanced operating mode. figure 29a. ti-style pipelined depth- cascading 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 43
the g al20ra10b and gal 22v10c plds each pro- vide ten macrocells. one macrocell may be configured to operate as a simple inverting or non-inverting buffer, a simple nand or and gate, an and-or gate, or a flipflop with an and-or input structure. the gal20ra10b macrocell architecture in particular supports the imple- mentation of an asynchronous-set/reset cloc ked d f lipflop like the one shown in figure 29b, except for some polarity differences at certain points within the logic diagram. if a slower implementation of the final and gate can be tolerated in a given application, a single gal20ra10b may be used to im plement the circuit of figure 29b five times, thus allowing for a cascade six fifos deep, with no second pld being necessary. the gal20ra10b and gal22v10c plds are manufactured by lattice semi- conductor corporation, 5555 northeast moore court, hillsboro, or 97124, usa. width ex pansion along with depth cascading in principle, width expansion may be used with either of the two possible depth-cascading schemes. however, when using the token-passing depth-cas- cading scheme, width expansion red uces simply to plac- ing two or more cascades in parallel. in this mode of interconnection, no architectural support is available for interlocked- paralleled op eration. composite-flag logic may, of course, be designed to fit any complete array configuration, to determine meaningful full and empty indications for the entire array. this logic may, for in- stance, or the ff and ef signals from the devices at the same relative position in each of the par alleled cascades, and then and all of the rank- ff signals t ogether; and likewise for all of the r ank- ef signals. then, the entire array is indicated to be full, if all ranks of devices (across the paralleled cascades) are individually fu ll; and, simi- larly for empty. when using the pipelined depth-cascading scheme, on the other hand, the first rank of devices (the one which receives input data words from the external system) and the last rank of devices (the one which provides output data words to the external system) may be operated in an interlocked-paralleled manner. figure 30 shows a sug- gested interconnection scheme for two paralleled cas- cades, each three devices deep. the entire array of figure 30 would comprise a 3072 36 effective fifo, if implemented with 1024 18 LH540225 devices. when- ever the number of par alleled cascades exceeds two, a small amount of external logic is necessary to implement the interlocking. ck d q as transfer clock ar wen 2 (device n) ff (device n) ef 2 (device n-1) reset notes: 1. as sets q=1 regardless of ck or d. (asynchronous set.) ar sets q=0 regardless of ck or d. (asynchronous reset.) 2. q=0 occurs if and only if device n-1 goes completely empty and device n goes completely full. q=0 is maintained as long as these conditions persist. 3. this circuit is used as block 'a' in figure 29a and in figure 30. 540215-31 bold italic = enhanced operating mode. figure 29b. external logic needed for ti-style pipelined depth c ascading bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 44
write clock write enable load v cc v cc transfer clock hf wclk wen ld rs paf ff ef 2 fl rclk ren oe pae ef ren 2 wen 2 hf wclk wen ld rs paf ff ef 2 rclk ren pae ef ren 2 wen 2 hf wclk wen ld rs paf ff ef 2 rclk ren pae ef ren 2 wen 2 fl fl emode oe emode oe emode a a reset v cc v cc hf wclk wen ld rs paf ff ef 2 fl rclk ren oe pae ef ren 2 wen 2 hf wclk wen ld rs paf ff ef 2 rclk ren pae ef ren 2 wen 2 hf wclk wen ld rs paf ff ef 2 rclk ren pae ef ren 2 wen 2 fl fl emode oe emode oe emode a a 540215-33 1. the transfer clock may be any free-running clock. however, it is recommended that the faster of the write clock and the read clock 2 be used, if both of these are free-running clocks. 2. block 'a' contains the circuit shown in figure 29b. 18 18 18 18 efc read enab le read clock 36 data out 18 ffc 36 18 18 18 d[17:0] q[17:0] d[17:0] q[17:0] d[17:0] q[17:0] d[17:0] q[17:0] d[17:0] q[17:0] d[17:0] q[17:0] data in bold italic = enhanced operating mode. notes: output enab le figure 30. interlocked paralleling used together with pipelined depth-cascading 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 45
package diagrams 25.27 [0.995] 25.02 [0.985] 24.23 [0.954] 24.13 [0.950] 24.23 [0.954] 24.13 [0.950] 25.27 [0.995] 25.02 [0.985] 23.62 [0.930] 22.61 [0.890] maximum limit minimum limit dimensions in mm [inches] 1.27 [0.050] bsc 0.53 [0.021] 0.33 [0.013] 0.051 [0.020] min 3.91 [0.154] 3.71 [0.146] 0.10 [0.004] 4.57 [0.180] 4.19 [0.165] 68plcc-1 68plcc (plcc68-p-950) 68-pin, 950-mil plcc lh540215/25 512 x 18/1024 x 18 synchronous fifo 46
64tqfp dimensions in mm [inches] maximum limit minimum limit 0.20 [0.008] 0.09 [0.004] 0.15 [0.006] 0.05 [0.002] 16.0 [0.630] basic 14.0 [0.551] basic 0.45 [0.018] 0.30 [0.012] 1.45 [0.057] 1.35 [0.53] 1.60 [0.063] max. 0.80 [0.031] basic 14.0 [0.551] basic 16.0 [0.630] basic 0.75 [0.030] 0.45 [0.018] 0.10 [0.004] 64tqfp (tqfp-64-p-1414) detail 64-pin tqfp bold ita lic = enh anced op erating mode 512 x 18/ 1024 x 18 synchronous fifo lh540215/25 47
ordering information 20 25 35 cycle time (ns) u 68-pin plastic leaded chip carrier (plcc68-p-s950) m 64-pin thin quad flat package (tqfp-64-p-1414) lh540215/25 device type x package - ## speed 540215md 512 x 18/1024 x 18 synchronous fifo example: lh540215u-25 (512 x 18 sychronous fifo, 25 ns, 68-pin plcc) bold ita lic = enh anced op erating mode lh540215/25 512 x 18/1024 x 18 synchronous fifo 48


▲Up To Search▲   

 
Price & Availability of LH540225

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X